home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 5
/
Gold Medal Software - Volume 5 (Gold Medal) (1995).iso
/
utils1
/
forag200.arj
/
SAFE.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-12-26
|
3KB
|
73 lines
@ECHO OFF
ECHO OFF
CLS
ECHO ██▀█▀█▀█▀█▀█▀█▀█▀█▀█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀██
ECHO █▌█ █ █ █ █ █ █ █ █▐ SAFE - THE QUICK BACKUP UTILITY ▌█ █ █ █ █ █ █ █ █ █▐█
ECHO ██▄█▄█▄█▄█▄█▄█▄█▄█▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄██
REM ───────────────────────────────────────────────────────────────────────
REM Check for interrupted backup
REM
IF NOT EXIST SAFE$$$$\*.* GOTO EOCKINT
DIR SAFE$$$$ \W
ECHO █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ SAFE -- THE QUICK BACKUP UTILITY ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
ECHO ▌ SAFE's temporary directory (SAFE$$$$) has been found here, and it ▐
ECHO ▌ contains some files. In order to continue, the files must be deleted. ▐
ECHO █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
GETKEY Delete the files? (Press N to cancel if you are not sure) Y@N
IF ERRORLEVEL 2 GOTO QUIT
ECHO Y | DEL SAFE$$$$\*.*
RD SAFE$$$$
:EOCKINT
REM ───────────────────────────────────────────────────────────────────────
REM See if we need to create dummy files
REM
CD A:\
IF EXIST A:SAFE?.ZIP GOTO BACKUP
REM ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
REM Check that this is a blank disk
REM
IF NOT EXIST A:*.* GOTO EOCKBLK
DIR A: /W
ECHO The A: drive appears to contain something other than a standard SAFE
ECHO disk. Standard SAFE disks contain one or more files named SAFE#.ZIP.
GOTO QUIT
:EOCKBLK
REM ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
REM Create dummy files
REM
CLS
ECHO █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ SAFE -- THE QUICK BACKUP UTILITY ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
ECHO ▌ ▐
ECHO ▌ Since you have put a blank diskette in the A: drive, we will now create ▐
ECHO ▌ three ZIP files there. This will let SAFE maintain a cycle of three ▐
ECHO ▌ backups of your directory. You should have at least two diskettes set ▐
ECHO ▌ aside for each directory you want to backup with SAFE. ▐
ECHO ▌ ▐
ECHO ▌ If you ever find that one of the SAFE disks does not have enough room ▐
ECHO ▌ for three ZIP files, you can delete one or more and SAFE will continue ▐
ECHO ▌ to use the disk without problem, as long as there is at least one file ▐
ECHO ▌ with a name like SAFE#.ZIP (example: SAFE1.ZIP). ▐
ECHO ▌ ▐
ECHO █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
GETKEY Continue? YN
IF ERRORLEVEL 2 GOTO QUIT
ECHO Refer to SAFE.BAT >A:SAFE1.ZIP
ECHO Refer to SAFE.BAT >A:SAFE2.ZIP
ECHO Refer to SAFE.BAT >A:SAFE3.ZIP
REM ───────────────────────────────────────────────────────────────────────
REM Do the backup
REM
:BACKUP
FORAGE O A:\SAFE?.ZIP SAFE2.BAT FROMSAFE @@ %1
REM ───────────────────────────────────────────────────────────────────────
REM The End
REM
:QUIT